home *** CD-ROM | disk | FTP | other *** search
- Path: gate.net!pslfl2-24
- From: bhutto@gate.net (William Hutto)
- Newsgroups: comp.lang.c
- Subject: Re: I need help with a compiler
- Date: 3 Jan 1996 21:08:40 GMT
- Organization: CyberGate, Inc.
- Message-ID: <4cer8o$1v44@news.gate.net>
- References: <8206107149101@demosys.gcomm.com>
- NNTP-Posting-Host: pslfl2-24.gate.net
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- In article <8206107149101@demosys.gcomm.com>,
- loople@gcomm.com (Mike Lopier) wrote:
- >
- >I am trying to *learn* C so i bought 2 books, 1 for learning C and
- >another to move from C to C++, one of them came with a compiler called
- >GNU but I write a simple program like:
- >
- >#include <iostream.h>
- >main ()
- >{
- >cout "Hello";
- >}
- >
- >
- >And when i tried to compile it I get a Iostream.h -- file not found
- >
- >Well i've copied the .cpp, the iostream.h, and teh compiler all into the
- >same directory and it still gave me that error. I've even put it in the
- >path but still it keeps saying 'file not found'...There are no options
- >for 'path of header files' or something...it is a command line
- >compiler..So i am thouroughly confused and frustrated. If anyone out
- >there knows why even though i know that i didn't give you enough info
- >that's all i can come up with and I have no idea why it won't work.
-
- Well I don't know about your compiler or system. But with me, I would have to
- set an environment variable:
-
- set INCLUDE=D:\SRC\C\INCLUDE
-
- The command line compiler would then check the environment for this variable
- to locate all standard include files (those defined between angle brackets
- <_include file_>).
-
- Bill
-
- "Whatcha got on?...Your mind?"
-